import Layout from '@/page/index/'

export default [{
  path: '/wel',
  component: Layout,
  redirect: '/wel/index',
  children: [{
    path: 'index',
    name: '首页',
    meta: {
      i18n: 'dashboard'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/wel/index')
  }, {
    path: 'dashboard',
    name: '控制台',
    meta: {
      i18n: 'dashboard',
      menu: false,
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/wel/dashboard')
  }]
}, {
  path: '/test',
  component: Layout,
  redirect: '/test/index',
  children: [{
    path: 'index',
    name: '测试页',
    meta: {
      i18n: 'test'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/util/test')
  }]
}, {
  path: '/info',
  component: Layout,
  redirect: '/info/index',
  children: [{
    path: 'index',
    name: '个人信息',
    meta: {
      i18n: 'info'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/user/info')
  }]
}, {
  path: '/flowable',
  component: Layout,
  redirect: '/flowable/formIndex',
  children: [{
    path: 'formIndex',
    name: '表单管理',
    meta: {
      i18n: 'info'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/flowable/formIndex')
  },{
    path: 'processDefinition',
    name: '流程定义',
    component: () => import('@/views/flowable/processDefinition'),
    meta: {title: '流程设计'},
    children:[{
        path: 'nodeDefine',
        name: '节点定义',
        component: () => import('@/views/flowable/subPage/nodeDefine'),
    }]
  },{
    path: 'processInstance',
    name: '流程实例',
    component: () => import('@/views/flowable/processInstance'),
    meta: {title: '流程设计'}
  },{
    path: 'task',
    name: '任务管理',
    component: () => import('@/views/flowable/task'),
    meta: {title: '流程设计'}
  },{
    path: 'model',
    name: '模型管理',
    component: () => import('@/views/flowable/model'),
    meta: {title: '流程设计'}
},{
  path: 'myProcess',
  name: '我的流程',
  component: () => import('@/views/flowable/myProcess'),
  meta: {title: '流程设计'}
},{
  path: 'startMyProcess',
  name: '发起流程',
  component: () => import('@/views/flowable/startMyProcess'),
  meta: {title: '流程设计'}
},{
  path: 'taskTodo',
  name: '我的待办',
  component: () => import('@/views/flowable/taskTodo'),
  meta: {title: '流程设计'}
},{
  path: 'taskDone',
  name: '我的已办',
  component: () => import('@/views/flowable/taskDone'),
  meta: {title: '流程设计'}
},{
  path: 'catalogManage',
  name: '流程分类管理',
  component: () => import('@/views/flowable/catalogManage'),
  meta: {title: '流程设计'}
}]
}, {
  path: '/myFlowable',
  component: Layout,
  redirect: '/myFlowable/myProcess',
  children: [{
    path: 'myProcess',
    name: '流程设计',
    meta: {
      i18n: 'info'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/myFlowable/myProcess')
  },{
    path: 'startMyProcess',
    name: '流程设计',
    meta: {
      i18n: 'info'
    },
    component: () =>
      import( /* webpackChunkName: "views" */ '@/views/myFlowable/startMyProcess')
  }]},{
  path: '/flowableModelEdit',
  redirect: '/flowableModelEdit/index',
  component: Layout,
  children: [{
      path: 'index',
      name: '流程设计',
      component: () => import('@/views/flowable/model/edit'),
      meta: {title: '流程设计'}
  }]
},
{
    path: '/flowableFormEdit',
    component: Layout,
    children: [{
        path: '/',
        name: '修改表单',
        component: () => import('@/views/flowable/form/edit'),
        meta: {title: '修改表单'}
    }]
},{
  path: '/flowableFormDesign',
  component: Layout,
  children: [{
      path: '/',
      name: '修改表单',
      component: () => import('@/views/flowable/form/design'),
      meta: {title: '修改表单'}
  }]
}, {
  path: '/setting',
  component: Layout,
  redirect: '/setting/index',
  children: [{
    path: 'index',
    name: '流程设置',
    meta: {
      i18n: 'info'
    },
    component: () =>import('@/views/setting/index')
  }]
 }
]
